'use strict';

angular.module('tvshowsApp')
    .controller('HistoriqueDetailController', function ($scope, $stateParams, Historique) {
        $scope.historique = {};
        $scope.load = function (id) {
            Historique.showHistory({id: id}, function(result) {
              $scope.historique = result;
            });
        };
        $scope.load($stateParams.id);
    });
